﻿
using System;

namespace RWXMLEdit.Common
{
    public class ComboBoxItem : IComparable<ComboBoxItem>
    {
        public string Id { get; set; }
        public string Text { get; set; }
        public string Path { get; set; }
        public bool HasPath { get; set; }
        public string XData { get; set; }
        public string YData { get; set; }

        public override string ToString()
        {
            return Text;
        }

        public int CompareTo(ComboBoxItem other)
        {
            return String.CompareOrdinal(Text, other.Text);
        }
    }
}
